package com.kellyfeng.spittr.controller;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import com.kellyfeng.spittr.exception.SpittleNotFoundException;

/**
 * @author Administrator
 *处理所有控制器抛出的异常
 */
@ControllerAdvice
public class AppWideExceptionHandler {

  //@ExceptionHandler(xxx.class)
  public String handleNotFound() {
    return "error";
  }

}
